package com.yonyou.ucf.mdf.app.isvdxq.common;

public class ApiYon {
    /**
     * 免密登录获取用户信息
     * /open-auth/suiteApp/getAccessToken
     * /open-auth/suiteApp/getBaseInfoByCode
     * /open-auth/freelogin/getBaseInfoByCode
     * https://api.diwork.com/open-auth/suiteApp/getBaseInfoByCode
     */
    public static final String getBaseinfo = "/open-auth/suiteApp/getBaseInfoByCode";
    public static final String getBaseInfoByCode = "/open-auth/freelogin/getBaseInfoByCode";
    /**
     * 方案暂未启用
     */
    public static final String getServiceCode = "/yonbip/uspace/service/list_by_user_id";
    public static final String getAppId = "/yonbip/uspace/app/info_by_app_code";
    /**
     * 用友YonBip原厂 - 协同服务 - 业务协同
     * 根据appcode获取服务列表
     * 用于本地登录后，服务鉴权
     * /yonbip/uspace/app/list_by_user_id
     */
    public static final String getAppcode = "/yonbip/uspace/app/list_by_app_code";

    /**
     * 用友YonBip原厂 - 协同服务 - 用户
     * 根据手机号邮箱用户名分页查询租户下用户
     * 登录时鉴权
     */
    public static final String getUserInfo = "/yonbip/uspace/users/search_page_list";

    /**
     * 用友YonBip原厂 - 采购供应 - 采购管理 - 到货单
     * 获取到货单详情
     * https://open-api-dbox.yyuap.com/yonbip/scm/arrivalorder/detail
     */
    public static final String getArrivalOrderDetail = "/yonbip/scm/arrivalorder/detail";

    /**
     * 用友YonBip原厂 - 采购供应 - 采购入库单
     * 采购入库来源生单保存 resubmitCheckKey 防止重复提交
     * https://open-api-dbox.yyuap.com/yonbip/scm/purinrecord/mergeSourceData/save
     * 该场景是按照来源单据进行生单，支持采购订单生单、到货单生单场景，此种场景，mergeSourceData需为true，
     * 根据sourceid、sourceautoid、makeRuleCode 3个参数会自动携带上游单据数据生单，需要修改上游单据数据某个字段值时，
     * 输入需要修改值的参数进行覆盖来源单据的数据。修改数量、单价、金额时，需要开启表体行计算（needCalcLines=true）。
     */
    public static final String purInSubmit = "/yonbip/scm/purinrecord/mergeSourceData/save";
    public static final String getPurinDetail = "/yonbip/scm/purinrecord/detail";
    public static final String getOthoutSubmit = "/yonbip/scm/othoutrecord/single/save";
    public static final String getOthinSubmit = "/yonbip/scm/othinrecord/single/save";
    public static final String getSalesoutDetail = "/yonbip/scm/salesout/detail";

    /**
     * 用友YonBip原厂 - 采购供应 - 销售出库单
     * 调用用友出库接口：销售出库来源生单保存，将发货单转化为出库单
     * resubmitCheckKey 防止重复提交
     * 该场景是按照来源单据进行生单，支持销售发货单生单、 销售退货单生单、 销售订单生单场景，此种场景，
     * 若mergeSourceData为true，则sourceid、sourceautoid、makeRuleCode 3个参数录入之后会自动携带上游单据数据生单，
     * 需要修改上游单据数据某个字段值时，输入需要修改值的参数进行覆盖来源单据的数据
     * https://open-api-dbox.yyuap.com/yonbip/scm/salesout/mergeSourceData/save
     */
    public static final String purOutSubmit = "/yonbip/scm/salesout/mergeSourceData/save";

    /**
     * 用友YonBip原厂 - 营销服务 - 营销服务 - 销售发货
     * 获取销售发货单明细列表，参数需要要输入完整的出库单号
     * voucher delivery 凭单交货
     */
    public static final String getOutListDetail = "/yonbip/sd/voucherdelivery/detail";

    /**
     * 用友YonBip原厂 - 数字化建模 - 角色管理
     * 主组织权限查询
     */
    public static final String getPermission = "/yonbip/digitalModel/mainOrgPermission";
    /**
     * 查询交易类型详情
     */
    public static final String getTranstypeDetail = "/yonbip/digitalModel/transtype/detail";
    /**
     * 仓库列表查询
     */
    public static final String getWarehoseList = "/yonbip/digitalModel/warehouse/list";
    /**
     * 仓库详情查询
     */
    public static final String getWarehoseDetail = "/yonbip/digitalModel/warehouse/detail";
    /**
     * 业务单元列表数据同步
     */
    public static final String getOrgunitSync = "/yonbip/digitalModel/OrgUnitSync/doSync";
    /**
     * 业务单元详情查询
     */
    public static final String getOrgunitDetail = "/yonbip/digitalModel/orgunit/detail";
    /**
     * 物料分类树查询-特征
     */
    public static final String getManageclassTree = "/yonbip/digitalModel/managementclass/newtree";
    /**
     * 根据id查询物料分类-特征
     */
    public static final String getManageclassDetail = "/yonbip/digitalModel/managementclass/newdetail";
    /**
     * 物料档案分页查询-特征
     */
    public static final String getProList2 = "/yonbip/digitalModel/product/listproductbycondition";
    /**
     * 特征物料档案详情查询
     */
    public static final String getProDetail = "/yonbip/digitalModel/product/detailNew";
    /**
     * 物料档案批量详情查询（新）
     */
    public static final String getProBatch = "/yonbip/digitalModel/product/batchdetail";//batch
    /**
     * 物料档案自定义分页查询
     * 接口官方停用授权
     */
    public static final String getProList = "/yonbip/digitalModel/product/queryByPage";
    /**
     * 计量单位列表查询
     */
    public static final String getUnitList = "/yonbip/digitalModel/unit/list";
    /**
     * 计量单位详情查询
     */
    public static final String getUnitDetail = "/yonbip/digitalModel/unit/detail";

    /**
     * 商品SKU档案查询
     */
    public static final String getProSKU = "/yonbip/digitalModel/product/sku/getSkuInfoByPage";
    /**
     * 物料模板详情查询-特征
     */
    public static final String getProtplDetail = "/yonbip/digitalModel/producttpl/detail";
}
